((${input$entity} instanceof MobEntity) ? ((MobEntity) ${input$entity}).getAttackTarget() : null)